﻿@model CmsAdminPageModel

@{
    Layout = "~/admin/Views/CmsPage/PageEditBase.cshtml";
    ResFile = "cms_Pages";
    ViewBag.Title = _("Edit {0}", Model.PageName);
}

@section DescriptionBlock
{
<p><a class="b-back-link" href="/admin/cmspage"><i class="b-icon"></i> @_("Back to pages")</a></p>

<h1 class="g-clear">
	<i class="b-icon b-icon_h b-icon_h_pages"></i>
	<span class="b-overflow">
	@_("Edit {0}", @Model.PageName)
	<span class="b-intro-text">@_("Amend page details and edit the content in each page region. Each region can contain several ordered content blocks and/or modules.") </span>
	</span>  
</h1>
}


@section ButtonsBlock
{
<div class="b-form  b-form_bordered b-form_layout_separated b-form_theme_green">
    <div class="b-form__head">
    </div>
    <div class="b-form__body">
        <div class="b-form__content">
            <ol class="b-form__rows ul-reset g-clear">
                <li class="b-form__row g-clear">
                    <input class="b-button b-button_small b-button_colour_grey js-page-type js-content" type="submit" value="@_("Preview")" name="Preview" id="Preview"/>
                    <input class="b-button b-button_small" type="submit" value="@_("Save")" id="Apply" name="Apply"/>
                    @if (CmsConfiguration.IsWorkflowEnabled)
                    {
                        <input class="b-button b-button_small" type="submit" value="@_("Send for approval")" name="Workflow" id="Workflow"/>
                        <input class="b-button b-button_small" type="submit" value="@_("Save")" id="Save draft & Quit"/>
                    }
                    else
                    {               
                        <input class="b-button b-button_small" type="submit" value="@_("Save & Quit")" id="Save"/>
                    }                    
                </li>
                <li class="b-form__row b-form__row_updated g-clear">
                    <span>@_("Last updated on:") <b>@Model.DatePublished.ToString("dd/MM/yyyy hh:mm:ss")</b></span>
                </li>
            </ol>    		
        </div>
    </div>
</div>
}

